/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package save;

import plan.Plan;
import turnover.Consumption;

/**
 *
 * @author Alberto
 */
public class BonoPrueba extends Save {

    public BonoPrueba(Plan plan) {
        super(plan);
        super.setName("BonoPrueba");
    }

    @Override
    public double getCost(Consumption consumption){
        double total = 0d;
        Consumption con = this.applySave(consumption);
        total = super.getPlan().getCost(con);
        return total;
    }

}
